package com.zdkj.admin.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
 * 权限变更申请dto
 * @author Magic
 *
 */
@Data
@ApiModel(value = "权限变更申请dto")
public class RoleChangeCreateDTO {

    @ApiModelProperty(value="用户id",required = true)
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    /**
     * 原有角色
     */
    @ApiModelProperty(value="原有岗位",required = true)
    @NotBlank(message = "原有岗位不能为空")
    private String oldRole;

    /**
     * 现有角色
     */
    @ApiModelProperty(value="现有岗位",required = true)
    @NotBlank(message = "现有岗位不能为空")
    private String newRole;
    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    @Length(max = 255,message = "备注长度不能超过255")
    private String remark;
    /**
     * 线路名称
     */
    @ApiModelProperty(value="线路名称")
    private String lineName;
    /**
     * 车站名称
     */
    @ApiModelProperty(value="车站名称")
    private String station;

}
